/**
 * 
 */
package com.xbjtech.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xbjtech.model.Business;
import com.xbjtech.service.BusinessService;

/**
 * @author Administrator
 *
 */
@Controller
@RequestMapping("/business")
public class BusinessController {
	
	@Autowired
	BusinessService businessService;
	
	@RequestMapping("/list")
	@ResponseBody
	public List<Business> list() {
		List<Business> list = businessService.list();
		return list;
	}
	

}
